package com.book.book.service;

import com.book.book.domain.BookDO;
import com.book.iphone.domain.CateBook;

import java.awt.print.Book;
import java.util.List;
import java.util.Map;

/**
 * 用户读书表
 * 
 * @author siyuan
 * @email 894266364.com
 * @date 2018-01-27 10:53:23
 */
public interface BookService {
	
	BookDO get(Integer ubId);
	
	List<BookDO> list(Map<String, Object> map);
	
	int count(Map<String, Object> map);
	
	int save(BookDO book);
	
	int update(BookDO book);
	
	int remove(Integer ubId);
	
	int batchRemove(Integer[] ubIds);

    List<BookDO> getcateid(Integer cateid);

    List<CateBook> selectBookListWithCate();

	List<BookDO> listWithName(Map<String, Object> map);
}
